package com.authine.cloudpivot.ext.domain.dto;

import com.authine.cloudpivot.ext.domain.dto.base.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author Administrator
 */
@Data
@Schema(description = "PurchaseDto")
public class PurchaseDto extends Page {

    @Schema(description = "id")
    private String id;
    @Schema(description = "quote_multiple_purchases")
    private String quote_multiple_purchases;
    @Schema(description = "vmi_goods")
    private Boolean vmi_goods;
    @Schema(description = "vendor_sku")
    private String vendor_sku;
    @Schema(description = "customer_sku")
    private String customer_sku;
    @Schema(description = "brand")
    private String brand;
    @Schema(description = "name")
    private String name;
    @Schema(description = "model")
    private String model;
    @Schema(description = "cost_center_name")
    private String cost_center_name;
    @Schema(description = "expire")
    private List<String> expire;
    @Schema(description = "saled")
    private Boolean saled;
    @Schema(description = "enabled")
    private Boolean enabled;
    @Schema(description = "type")
    private Integer type;
    @Schema(description = "kcg")
    private Boolean kcg;
    @Schema(description = "needAndAsk")
    private String needAndAsk;
    @Schema(description = "catalog")
    private String catalog;
    @Schema(description = "createdTime")
    private List<String> createdTime;
    @Schema(description = "inquiry_name")
    private String inquiry_name;
    @Schema(description = "demand_dept_id")
    private String demand_dept_id;
    @Schema(description = "inquiry_id")
    private String inquiry_id;
    @Schema(description = "vendor_name")
    private String vendor_name;
    @Schema(description = "quote_total_strategy")
    private Boolean quote_total_strategy;


    @Schema(description = "inquiry_goods_id")
    private String inquiry_goods_id;




//    public static void main(String[] args)   {
//        PurchaseDto dto = new PurchaseDto();
//
//        Class<? extends PurchaseDto> aClass = dto.getClass();
//
//        Field[] fs = aClass.getDeclaredFields();
//
//        StringBuilder str = new StringBuilder();
//
//        for (final Field f : fs) {
//            String fname = f.getName().substring(0, 1).toUpperCase().concat(f.getName().substring(1, f.getName().length()));
//            str.append("        if (StringUtils.isNotEmpty(dto.get").append(fname).append("())){\n");
//            str.append("            where.append(\" and ")
//                    .append(f.getName()).append("=:").append(f.getName()).append(" \");\n");
//
//            str.append("            parm.put(\"").append(f.getName()).append("\", dto.get")
//                    .append(fname).append("());\n");
//            str.append("        }\n");
//
//        }
//        Console.log( str.toString());
//
//
//    }

}
